package com.ggb.reactive.domain.dto

import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.v3.oas.annotations.media.Schema
import lombok.Data
import java.math.BigDecimal
import java.time.Instant

@Data
@Schema(title="订单支付DTO OrdersSubmitDTO")
data class OrdersSubmitDTO(

    @Schema(description = "地址id")
    var addressBookId: Long? = null,

    @Schema(description = "支付方式 1微信，2支付宝")
    var payMethod: Int? = null,

    @Schema(description = "实收金额")
    var amount: BigDecimal? = null,
    @Schema(description = "备注")
    var remark: String? = null,

    // TODO 如果加了下面这行，会报错
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT-6")
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "预计送达时间")
    var estimatedDeliveryTime: Instant? = null,


    @Schema(description = "配送状态  1立即送出  0选择具体时间")
    var deliveryStatus: Int? = null,

    @Schema(description = "餐具数量")
    var tablewareNumber: Int? = null,

    @Schema(description = "餐具数量状态  1按餐量提供  0选择具体数量")
    var tablewareStatus: Int? = null,

    @Schema(description = "打包费")
    var packAmount: Int? = null,

)
